# Purpose: Makefile to build the precj based on GCJ 3.4.5
#
# Author: Yijun Yu
# $Id: Makefile 29 2006-08-30 16:18:39Z yijun $

GCJ = build/3.4.5/gcc/jc1

all: t.java.precj.jar

${GCJ}: build/3.4.5/Makefile gcc/java/jcf-parse.c
	cd ./build/3.4.5; make

#build/3.4.5/Makefile: ${HOME}/IDE/gcc/gcc-3.4.5/configure
#	mkdir -p ./build/3.4.5
#	cd ./build/3.4.5; ${HOME}/IDE/gcc/gcc-3.4.5/configure --prefix=${HOME}/software --program-prefix=pre --enable-languages=java

%.java.precj.jar: %.java ${GCJ}
	time -f %e ${GCJ} $*.java
	jar cf $*.java.precj.jar -C $*.java.precj java

clean::
<<<<<<< .mine
	rm -rf t.class t.s t.java.precj t.java.precj.jar
=======
	rm -rf java
#	rm -rf t.class t.s t.java.precj.jar
>>>>>>> .r27
